package com.copa.module.user.mapper;

import com.copa.module.user.domain.entity.UserEntity;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author copa
 * @createDate 2021-01-13
 * @function t_user表 Mapper 接口
 */
@Mapper
public interface UserDao extends BaseMapper<UserEntity> {

    UserEntity findByUsername(@Param("username") String username);

    UserEntity getUserByOpenId(@Param("openId") String openId);
}
